#!/usr/bin/python

import re

f = open("passwd")
p = re.compile(r'(.*feng.*):(\w+):([0-9]{4}):(.*)/(bash)')
for i in f:
    if p.findall(i):
        print(i,end="")
f.close()
